<template>
    <div class="e-table">
        <el-table
            :data="tableData"
            border
            style="width: 100%"
        >
            <el-table-column show-overflow-tooltip prop="unitName" label="审核级次">
            </el-table-column>
            <el-table-column show-overflow-tooltip prop="assignUser" label="审核人" width="120">
            </el-table-column>
            <el-table-column show-overflow-tooltip prop="notifyTime" label="通知时间" width="180">
            </el-table-column>
            <el-table-column show-overflow-tooltip prop="completeTime" label="审核时间" width="180">
            </el-table-column>
            <el-table-column show-overflow-tooltip prop="opinion" label="审核意见" width="250">
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
import auditRequest from '@/api/turnover/audit.js'

export default {
    props: {
        billType: {
            type: Number,
            default: 0
        }
    },
    data () {
        return {
            auditParams: {
                billId: this.$route.query.billid,
                billType: this.billType,
                freeNextUnitIndex: 0,
                freeNextUser: '',
                isPass: true,
                isShareInAudit: true,
                opinion: ''
            },
            tableData: []
        }
    },
    created () {
        this.auditHistory()
    },
    methods: {
        auditHistory () {
            auditRequest.getAuditHistory(this.auditParams).then(res => {
                this.tableData = res
            })
        },

    },
}
</script>

<style lang="sass" scoped></style>
